package com.yaodao;

import redis.clients.jedis.Jedis;

/**
 * @Author: 信息部 HN ZHAO
 * @Package:
 * @Description:
 * @Date: 2020/10/14 15:55
 */
public class TestPing {
    public static void main(String[] args) {
        //创建连接对象
        Jedis jedis = new Jedis("49.234.125.145",6379);
        jedis.auth("814x,yMM");
        //所有的命令都在jedis下
        System.out.println(jedis.ping());
        jedis.close();
    }
}
